/**
 * @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
 * For licensing, see LICENSE.md or http://ckeditor.com/license
 */

CKEDITOR.editorConfig = function( config ) {
	// Define changes to default configuration here. For example:
	// config.language = 'fr';
	// config.uiColor = '#AADC6E';
	//工具栏是否可以收缩
	config.toolbarCanCollapse = false;
	//取消拖拽改编尺寸
	config.resize_enabled = true;
	//提交时自动更新表单内的数据
	config.autoUpdateElement = true;
	//界面语言
	config.language = 'zh-cn';
	//设置html文档类型
	config.docType = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd%22' ;
	//当用户键入TAB时，编辑器走过的空格数，(&nbsp;) 当值为0时，焦点将移出编辑框 plugins/tab/plugin.js
    config.tabSpaces = 8;
    
    //设置字体
    config.font_names = '宋体;Arial;楷体;微软雅黑;Times New Roman;Verdana';
    config.font_defaultLabel = 'Arial';
    
    
    
    config.toolbar = 'Cms';
    config.toolbar_Cms =
    [
        ['Source','-','Templates','-','Cut','Copy','Paste'],
		['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
		['Link','Unlink','Anchor'],
		['Image','Flash','Table','HorizontalRule','Smiley','SpecialChar','PageBreak'],
		'/', ['Bold','Italic','Underline','Strike','-','Subscript','Superscript'],
		['NumberedList','BulletedList','-','Outdent','Indent','Blockquote'],
		['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
		['Format','Font','FontSize','-','TextColor','BGColor']
    ];
    config.height = 450; //高度
    config.fontSize_sizes = '10/10px;12/12px;14/14px;16/16px;18/18px;20/20px;22/22px;24/24px;28/28px;32/32px;48/48px;';
	
	
	//开启上传功能
	config.filebrowserBrowseUrl = '/public/ckfinder/ckfinder.html';
	config.filebrowserImageBrowseUrl = '/public/ckfinder/ckfinder.html?Type=Images';
	config.filebrowserFlashBrowseUrl = '/public/ckfinder/ckfinder.html?Type=Flash';
	config.filebrowserUploadUrl = '/public/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files'; //可上傳一般檔案
	config.filebrowserImageUploadUrl = '/public/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images';//可上傳圖檔
	config.filebrowserFlashUploadUrl = '/public/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash';//可上傳Flash檔案
	
	
};
